<?php
import("@.ORG.BaseRelationModel");       //导入分页类
class MiniKehuModel extends BaseRelationModel {
  protected $_link = array(
    'Kehu' => array(
      'mapping_type' => BELONGS_TO, 
      'class_name' =>'Kehu',
      'foreign_key' =>'client_id',
      'mapping_name' =>'kehu',
    ),
    'PublicStore' => array(
      'mapping_type' => BELONGS_TO, 
      'class_name' =>'PublicStore',
      'foreign_key' =>'public_store_id',
      'mapping_name' =>'public_store',
    ),
    'User' => array(
      'mapping_type' => BELONGS_TO, 
      'class_name' =>'User',
      'foreign_key' =>'user_id',
      'mapping_name' =>'user',
    ),
    'share_user' => array(
      'mapping_type' => BELONGS_TO, 
      'class_name' =>'User',
      'foreign_key' =>'share_user_id',
      'mapping_name' =>'share_user',
    ),
    'server_user1' => array(
      'mapping_type' => BELONGS_TO, 
      'class_name' =>'User',
      'foreign_key' =>'server_user1_id',
      'mapping_name' =>'server_user1',
    ),
    'server_user2' => array(
      'mapping_type' => BELONGS_TO, 
      'class_name' =>'User',
      'foreign_key' =>'server_user2_id',
      'mapping_name' =>'server_user2',
    ),
    'contact_people' => array(
      'mapping_type' => HAS_MANY, 
      'class_name' =>'contact_person',
      'foreign_key' =>'mini_client_id',
      'mapping_name' =>'contact_people',
    ),
    'contact_record' => array(
      'mapping_type' => HAS_MANY, 
      'class_name' =>'ContactRecord',
      'foreign_key' =>'mini_client_id',
      'mapping_name' =>'contact_record',
    ),

  );

}
?>
